x86 shadow: Avoid remove-all-shadows after shadow teardown
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:01:21 +0000 (08:01 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:01:21 +0000 (08:01 +0100)
commite4a1897ed12f699aadb40970438fe4e39404e086
tree978f60b58d52eed88073d2e9adb90f328eaf19e3
parented8d60c2ae3a3007d7e7ee814a253d95c7e85e68
x86 shadow: Avoid remove-all-shadows after shadow teardown

If dom0 alters the p2m of a domain that's being destroyed, we can end
up doing a remove-all-shadows after the shadow hash table has been
freed. Since no hash table implies no shadows, just return
immediately.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/shadow/common.c